extends Control

export var card_name = ""
export var coast = 0
export var scene:PackedScene

signal selected

func _ready():
	$Button.text = card_name
	$Coast.text = str(coast)
	connect("selected",get_tree().current_scene.get_node("."),"selected")
	pass

func _on_Button_toggled(button_pressed):
	if button_pressed:
		emit_signal("selected",$Button.text,$Button,int($Coast.text))
	pass # Replace with function body.
